

package pacman.skills;


/**
 * This class represents pacman's hability to throw a spear at a ghost
 * @author Leonardo
 */
public class Spear extends Skill{

    /**
     * Set the inicial parameters of skill
     * Set unavailable at the begining of the game
     */
    public Spear(){
        this.mana = 4;
        this.hit = 4;
        this.cost = 4;
        this.tick = 4;
        this.isActive = false;
        this.spriteIndex = 0;
    }

    
    /**
     * Activation of skill
     * @param cost Cost of skill
     * @return cost
     */
    public int Activate(int cost){
        if(cost == this.cost)
            this.isActive = true;
        return this.cost;
    }

    
}
